package net.lzzy.practices.web;

import io.swagger.annotations.ApiOperation;
import net.lzzy.practices.web.handler.BusinessException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * @author lzzy_cyp on 2022/5/5
 */
@Controller
@ApiIgnore
public class IndexController {
    @ApiOperation(value = "测试业务异常", notes = "<b>参数包括：</b><br/>&nbsp;&nbsp;&nbsp;&nbsp;BusinessException值")
    @GetMapping("/")
    public String index(){
        if(true){
            throw new BusinessException("测试业务异常");
        }
        return "index";
    }
}
